import { AuthModule } from '../auth/auth.module';
import { UserEntity } from '../../entity/user.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Module, forwardRef, CacheModule } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import { CommonRedisModule } from '../common-redis/common-redis.module';

@Module({
  imports: [TypeOrmModule.forFeature([UserEntity]), forwardRef(() => AuthModule), CacheModule.register(),CommonRedisModule],
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService]
})
export class UserModule { }
